﻿<!DOCTYPE html>
<html>
<head>
    <title>$category.cname</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="Keywords" content="$category.keywords" />
    <meta name="Description" content="$category.Description" />
    <!-- Mobile Devices Support @begin -->
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type" />
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control" />
    <meta content="no-cache" http-equiv="pragma" />
    <meta content="0" http-equiv="expires" />
    <meta content="telephone=no, address=no" name="format-detection" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <!-- Mobile Devices Support @end -->
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="$listcss" />
    <link rel="stylesheet" type="text/css" href="$menucss" />
    <script type="text/javascript" src="/Scripts/JQuery.min.js"></script>
    <script type="text/javascript" src="/Scripts/Swipe.js"></script>
    <script type="text/javascript" src="/Scripts/Zepto.js"></script>
    
</head>
<body onselectstart="return true;" ondragstart="return false;">
    <div class="body">
        <footer class="nav_footer">
            <ul class="box">
                <li><a href="javascript:history.go(-1);">返回</a></li>
                <li><a href="javascript:history.go(1);">前进</a></li>
                <li><a href="/phone/home?userid=$merchant.user_id">首页</a></li>
                <li><a href="javascript:location.reload();">刷新</a></li>
            </ul>
        </footer>
        <!--分享前控制-->
        <script type="text/javascript">
            document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
                window.shareData = {
                    "imgUrl": "$category.PicUrl",
                    "timeLineLink": location.href,
                    "sendFriendLink": location.href,
                    "weiboLink": location,
                    "tTitle": "$category.cname",
                    "tContent": "$category.description",
                    "fTitle": "$category.cname",
                    "fContent": "$category.description",
                    "wContent": "$category.description"
                };

                WeixinJSBridge.call('hideToolbar');

                // 发送给好友
                WeixinJSBridge.on('menu:share:appmessage', function (argv) {
                    WeixinJSBridge.invoke('sendAppMessage', {
                        "img_url": window.shareData.imgUrl,
                        "img_width": "640",
                        "img_height": "640",
                        "link": window.shareData.sendFriendLink,
                        "desc": window.shareData.fContent,
                        "title": window.shareData.fTitle
                    }, function (res) {
                        _report('send_msg', res.err_msg);
                    })
                });

                // 分享到朋友圈
                WeixinJSBridge.on('menu:share:timeline', function (argv) {
                    WeixinJSBridge.invoke('shareTimeline', {
                        "img_url": window.shareData.imgUrl,
                        "img_width": "640",
                        "img_height": "640",
                        "link": window.shareData.timeLineLink,
                        "desc": window.shareData.tContent,
                        "title": window.shareData.tTitle
                    }, function (res) {
                        _report('timeline', res.err_msg);
                    });
                });

                // 分享到微博
                WeixinJSBridge.on('menu:share:weibo', function (argv) {
                    WeixinJSBridge.invoke('shareWeibo', {
                        "content": window.shareData.wContent,
                        "url": window.shareData.weiboLink
                    }, function (res) {
                        _report('weibo', res.err_msg);
                    });
                });
            }, false)
        </script>
        <header>
         <div style="-webkit-transform: translate3d(0,0,0);">
            <div id="banner_box" class="box_swipe">
                <ul>
                    #foreach($item in $stick.Rows)
                    <li><a
                    
                    #if($item.ncontenttype=="Href")
                     href="$item.ncontent"
                    #else 
                    href="/phone/news?userid=$merchant.mid&nid=$item.nid"  
                    #end >
                        <img style="width: 100%" src="$item.npicurl" /></a></li>
                    #end
                </ul>
                <ol>
                    #set($adOn="on")
                    #foreach($item in $stick.Rows)
                       #if($adOn=="on")
                        <li class="on"></li>
                        #set($adOn="off")
                       #else
                        <li></li>
                       #end
                    #end
                </ol>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {
                new Swipe(document.getElementById('banner_box'), {
                    speed: 500,
                    auto: 3000,
                    callback: function () {
                        var lis = $(this.element).next("ol").children();
                        lis.removeClass("on").eq(this.index).addClass("on");
                    }
                });
            });
        </script>
        <p class="shadow">
    &nbsp;
        </p>
        </header>
        <section>
            <ul class="list_ul list_ul_news">
                #foreach($item in $news.Rows)
                    <li style="#if($category.cbgcolor!="")background-color:$category.cbgcolor;#end">
                    #if($item.ncontenttype=="Href")
                        <a class="tbox" href="$item.ncontent">
                    #else
                        <a class="tbox" href="/phone/news?userid=$merchant.user_id&nid=$item.nid">
                    #end
                    <div>
                        <img class="timg" src="$item.nspicurl" style="#if($category.cbgcolor!="")background-color:$category.cbgcolor;#end"/>
                    </div>
                    <div>
                        <p>
                            $item.ntitle</p>
                        <p>
                            <img src="/Content/Images/WeChat/time.png"/>$item.ncreatedate</p>
                    </div>
                </a></li>
                #end
            </ul>
            <ol class="list_ul_news_nav box">
            #if($currentPage!=1)
                <li><a href="/phone/list?mid=$merchant.mid&cid=$category.cid&p=$previous">上一页</a> </li>
            #end
            #if($currentPage<$totalPage)            
                <li><a href="/phone/list?mid=$merchant.mid&cid=$category.cid&p=$next">下一页</a> </li>
            #end
            </ol>
        </section>
    </div>
    <div mark="stat_code" style="width: 0px; height: 0px; display: none;">
    </div>
</body>
</html>
